package varton;

/**
 * 促销方式B-满300 打9折
 */
public class SalesCaseB implements IPrice{

    @Override
    public double actuallyAmount(double price, int num) {
        if(price*num >= 300){
            return price*num*0.9;
        }
        return price*num;
    }
}
